var api_host = 'http://testapi.wanqijituan.com/api';
var wanqi_api = {
	certification : api_host + '/Alipay/certification',
	showDetails : api_host + '/house/showDetails',
	success : api_host + '/Alipay/certificationSuccess',
}

//var api_url = 'http://127.0.0.1:1001/api/Alipay/';
/*获取报头参数,警告，只能获取Response里面的报头信息，无法获取Request里面的报头信息*/
//getHeaderParam('uuidChar');
function getHeaderParam(name){
	var req = new XMLHttpRequest();
	req.open('GET', document.location, false);
	req.send(null);
	return req.getResponseHeader(name);
	//var headers = req.getAllResponseHeaders().toLowerCase();
	//return headers;

};
/*获取url参数*/
//getUrlParam('uuidChar');
function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg);  //匹配目标参数
    if (r != null) return unescape(r[2]); return null; //返回参数值
}